package stockblaster.client;

public class CompanySearchViewData {
	private String cName;
	private int cLogo;
	private int cArrow;
	private Double cGrowth;
	private Double sPrice;
	private int sOwned;
	private Double gainLoss;
	
	private Double userTotalValue;
	
	public CompanySearchViewData(String _cName, int _cLogo, int _cArrow,
			Double _cGrowth, Double _sPrice, int _sOwned, Double _userTotalValue,
			Double _gainLoss) {
		cName = _cName;
		cLogo = _cLogo;
		cArrow = _cArrow;
		cGrowth = _cGrowth;
		sPrice = _sPrice;
		sOwned = _sOwned;
		userTotalValue = _userTotalValue;
		gainLoss = _gainLoss;
	}
	
	/**
	 * 
	 * @return the difference (not absolute)
	 */
	public Double getGainLoss() {
		return gainLoss;
	}
	
	public void setUserTotalValue(Double value) {
		userTotalValue = value;
	}
	
	public Double getUserTotalValue() {
		return userTotalValue;
	}
	
	public void setName(String name) {
		cName = name;
	}
	
	public String getName() {
		return cName;
	}
	
	public void setLogo(int id) {
		cLogo = id;
	}
	
	public int getLogo() {
		return cLogo;
	}
	
	public void setArrow(int id) {
		cArrow = id;
	}
	
	public int getArrow() {
		return cArrow;
	}
	
	public void setGrowth(Double growth) {
		cGrowth = growth;
	}
	
	public Double getGrowth() {
		return cGrowth;
	}
	
	public void setPrice(Double price) {
		sPrice = price;
	}
	
	public Double getPrice() {
		return sPrice;
	}
	
	public void setOwned(int owned) {
		sOwned = owned;
	}
	
	public int getOwned() {
		return sOwned;
	}
}
